import QtQuick 1.0
import com.nokia.symbian 1.1
import "core.js" as Core


CommonDialog {
    id: root
    width: 0
    height: 0

    titleText: "Delete Confirmation"

    content: Column {
        x: 21
        y: 0
        anchors.rightMargin: -21
        anchors.leftMargin: 21
        spacing: 8
        anchors.left: parent.left; anchors.right: parent.right

        Label {
            id: titleLabel
            text:  "Delete All records ?"
            color: platformStyle.colorNormalLight
            font.pixelSize: platformStyle.fontSizeMedium
        }




    }


    buttons: ButtonRow {
        anchors { left: parent.left; right:  parent.right; margins: 16 }
        Button { text: "Ok" ; onClicked: { deleteAll(); root.accept();}}
        Button { text: "Cancel" ; onClicked: root.reject()}
    }

    function deleteAll()
    {
        Core.emptyTable();
    }

}
